package com.faithbj.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.faithbj.common.dao.impl.BaseDaoImpl;
import com.faithbj.common.model.fm.property.FamilyMemberProperty;
import com.faithbj.dao.FamilyMemberPropertyDao;

@Repository("familyMemberPropertyDao")
public class FamilyMemberPropertyDaoImpl extends BaseDaoImpl<FamilyMemberProperty, String> implements FamilyMemberPropertyDao {

	@SuppressWarnings("unchecked")
	@Override
    public List<FamilyMemberProperty> queryByFmIds(List<String> fmIds) {
        String hql = "select p from FamilyMemberProperty as p " + "where p.fmId in(:fmIds)";
        return getSession().createQuery(hql).setParameterList("fmIds", fmIds).list();
    }
}
